package com.wzh.glsc.auth.feign;

import com.wzh.common.utils.R;
import com.wzh.glsc.auth.to.UserRegisterTo;
import com.wzh.glsc.auth.vo.UserLoginVo;
import com.wzh.glsc.auth.vo.WeiBoAccessToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author xiaoming
 * @PackageName:com.wzh.glsc.auth.feign
 * @ClassName:@{NAME}
 * @Description:
 * @date:@{DATE}@{TIME}
 */
@FeignClient("glsc-member")
public interface MemberFeignService {

    @RequestMapping("/member/member/register")
    public R register(@RequestBody UserRegisterTo userRegisterTo);

    @RequestMapping("/member/member/login")
    @ResponseBody
    public R login(@RequestBody UserLoginVo userLoginVo);

    @RequestMapping("/member/member/weibo/login")
    public R weiboLogin(@RequestBody WeiBoAccessToken weiBoAccessToken);
}
